﻿<Window x:Class="PivotTests.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:TouchControls="clr-namespace:TouchControls;assembly=TouchControls"
        Background="Black"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <Style x:Key="MyList" TargetType="TouchControls:TouchListBox">
            <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel>
            <TextBlock Text="My precious Item" />
            <Button Content="Bouton" x:Name="AnotherButtonTest" Click="ButtonTestClick"></Button>
        </StackPanel>
        <TouchControls:TouchPivot Grid.Row="1">
            <TouchControls:PivotItem Title="My pivot">
                <Grid Background="Green">
                    <StackPanel>
                        <TextBlock Text="My precious Item" />
                        <Button Content="Bouton" x:Name="ButtonTest" Click="ButtonTestClick"></Button>
                    </StackPanel>
                </Grid>
            </TouchControls:PivotItem>
            <TouchControls:PivotItem Title="Dummy">
                <Grid Background="Blue">
                    <TouchControls:TouchListBox x:Name="TestList" Style="{StaticResource MyList}" />
                </Grid>
            </TouchControls:PivotItem>
            <TouchControls:PivotItem Title="Another panel">
                <Grid Background="Red">
                    <TextBlock Text="Youpi !" />
                </Grid>
            </TouchControls:PivotItem>
        </TouchControls:TouchPivot>
    </Grid>
</Window>
